/**
 * 
 */
package com.archerdu.apply.service;

import javax.servlet.http.HttpSession;

import com.archerdu.apply.dao.UserDAO;
import com.archerdu.apply.model.User;
import com.archerdu.base.exception.BussinessException;
import com.archerdu.base.service.IBaseManager;

/**
 * @author archer
 * @version 1.0.0
 */
public interface UserManager extends IBaseManager<User, Integer> {

    public void setUserDao(UserDAO userDao);

    public UserDAO getUserDao();

    /**
     * 检查登录
     * 
     * @param user
     * @return
     */
    public User checkLogin(User user);

    /**
     * 修改密码
     * 
     * @param user
     * @throws BussinessException 
     * @throws Exception 
     */
    public void modifyPwd(User user, String oldPassword, HttpSession session) throws BussinessException, Exception;
}
